//
//  CYJumpsTool.h
//  CreditAddressBook
//
//  Created by Lee on 15/5/6.
//  Copyright (c) 2015年 Lee. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "CYMyRelease.h"

typedef void(^CYCompletionBlock)();

@interface CYJumpsTool : NSObject

/**
 *  跳转到主界面
 */
+ (void)jumpToMain:(UIView *)view;

/**
 *  跳转到登录界面
 */
+ (void)jumpToLogin:(UIViewController *)controller;

/**
 *  跳转到我的信用通缉页面
 */
+ (void)jumpToMyWithController:(UIViewController *)controller backStyle:(CYBackStyle)backStyle;

/**
 *  跳转到企业登录界面
 */
+ (void)jumpToCompanyLogin:(UIViewController *)controller;
/**
 *  跳转到企业用户审核界面
 */
+ (void)jumpToCompanyInfo:(UIViewController *)controller pushType:(CYPushType)pushType;
/**
 *  跳转到用户审核界面
 */
+ (void)jumpToUserInfo:(UIViewController *)controller;

+ (UIStoryboard *)mainSB;
+ (UIStoryboard *)loginSB;

/**
 *  界面名称
 */
+ (NSString *)interfaceNameWithClassName:(NSString *)name;

/**
 *  设置layer的边框圆角
 */
+ (void)viewLayerWithView:(UIView *)view cornerRadius:(CGFloat)cornerRadius border:(CGFloat)border;

+ (void)exchangeMethodWhthClass:(Class)aClass oldSEL:(SEL)oldSEL newClass:(Class)newClass newSEL:(SEL)newSEL;
@end
